{% extends 'content/base_content.html' %}

{% block content %}
<div class="content-main separate-word">
    <div class="separate-word">
            <table width="80" cellpadding="8" cellspacing="1" height="100%">
                <thead>
                    <tr>
                        <td width="100">Фраза</td>
                        <td width="100">Перевод</td>
                        <td width="100">Добавлено</td>
                    </tr>
                </thead>
                <tbody>
                        <tr>
                            <td width="100"> {{ phrase.phrase }} </td>
                            <td width="100">{{ phrase.translation }}</td>
                            <td width="100">{{ phrase.created|date:"H:i d-m-Y" }}</td>
                            
                        </tr>
                </tbody>
            </table>
            <div class="photo">
                {% if phrase.photo %}
                    <img src="{{ phrase.photo.url }}">
                {% endif %}
            </div>
        </div>
        {% include 'includes/addition_about_phrase.html' %}
        <div class="actions">
            <a href="{{ phrase.get_update_url }}" class="update">Изменить</a>
            <form action="{{ phrase.get_delete_url }}" method="post">
                {% csrf_token %}
                <input class="delete" type="submit" value="Удалить">
            </form>
        </div>
</div>
{% endblock content %}
